package com.xbongbong.pro.statistic.model.impl;

import com.xbongbong.bi.domain.DataSetDolphinDao;
import com.xbongbong.pro.domain.entity.DataSetDolphinEntity;
import com.xbongbong.pro.statistic.model.DataSetDolphinModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 描述信息
 *
 * @ClassName DataSetDolphinModelImpl
 * @Author 梁鲁江
 * 创建时间 2022/6/29 18:56
 * 修改时间  2022/6/29 18:56
 **/
@Service("dataSetDolphinModel")
public class DataSetDolphinModelImpl implements DataSetDolphinModel {
    @Resource
    private DataSetDolphinDao dataSetDolphinDao;
    @Override
    public Integer insert(DataSetDolphinEntity entity) {
        return dataSetDolphinDao.insert(entity);
    }

    @Override
    public List<DataSetDolphinEntity> findEntitys(Map<String, Object> param) {
        return dataSetDolphinDao.findEntitys(param);
    }

    @Override
    public Integer getEntitysCount(Map<String, Object> param) {
        return dataSetDolphinDao.getEntitysCount(param);
    }

    @Override
    public Integer update(DataSetDolphinEntity entity) {
        return dataSetDolphinDao.update(entity);
    }

    @Override
    public DataSetDolphinEntity getByKey(Long key, String corpid) {
        return dataSetDolphinDao.getByKey(key,corpid);
    }

    @Override
    public DataSetDolphinEntity getByDataSetId(Long dataSetId, String corpid) {
        return dataSetDolphinDao.getByDataSetId(dataSetId,corpid);
    }
}
